<include file="Public:head" />
<link href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/home.css" rel="stylesheet" type="text/css" />
<script>
    $(function(){
        var orderUid = "{$Think.session.order}";
        if(orderUid>0){
          history.go(-1);
        }else{
            var uid = "{$Think.session.userid}";
            if(uid == ''){
                 history.go(-1);
            }
        }
    })
</script>
<div id="wrap">
    <div id="school">{$type=0|getAreaName}
        <a href="__APP__/?type=clean">[切换位置]</a>
        <span>/</span>
        <em>订单评价</em>
    </div>
    <div id="container" class="clearfix">
        <div class="shadow clearfix" id="pCenter">
            <include file="Public:left" />

            <div id="pContent">
                <empty name="lists">
                    <div id="noinfo">
                        您还没有评价过喔，现在就去
                        <a href="{:U('Member/order')}" style="color: #5da">评价</a>
                        ~
                    </div>
                    <else/>
                <table class="com_con" frame="below">
                    <col class="res" />
                    <col class="order" />
                    <col class="con" />
                    <col class="com" />
                    <col class="speed" />
                    <col class="taste" />
                    <col class="weight" />
                    <thead>
                        <tr>
                            <td>评价餐厅</td>
                            <td>订单内容</td>
                            <td>评价内容</td>
                            <td>综合评价</td>
                            <td colspan="3" width="190px">
                                我的打分
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                    <foreach name="lists" item="row">
                        <tr>
                            <td>
                                <a style="color:#55AADD" href="{:U('Area/detail',array('id'=>$row['sid']))}" target="blank">
                                    {$row.sid|getSingleField=###,'shop','name'}
                                </a>
                            </td>
                            <td>{$row.goods}</td>
                            <td>
                                <p style="text-align: left">{$row.comment}</p>
                                <p class="time" style="text-align: left">[{$row.addtime|date="Y-m-d H:i",###}]</p>
                            </td>
                            <td class="overall_com red">
                              {$row['speed']+$row['delicious']+$row['full']|getCommentTotal=###}
                                 <span class="small_star5">{$row['speed']+$row['delicious']+$row['full']|getCommentTotal=###,1}</span>
                            </td>
                            <td>
                                <p>送餐速度</p>
                                <p class="red">{$row.speed|getOneDot=###}</p>
                            </td>
                            <td>
                                <p>口味</p>
                                <p class="red">{$row.delicious|getOneDot=###}</p>
                            </td>
                            <td>
                                <p>分量</p>
                                <p class="red">{$row.full|getOneDot=###}</p>
                            </td>
                        </tr>
                    </foreach>

                    </tbody>
                </table>
                <div class="page">{$page}</div>
                </empty>
            </div>
            <!--end of pContent-->
        </div>
        <!--end of pCenter-->
    </div>
    <include file="Public:foot" />